package whf.framework.meta;

import java.util.Set;

import whf.framework.meta.entity.IProperty;

/**
 * 定制表单
 * @author wanghaifeng
 *
 */
public interface Form<PT extends IProperty> {
	public String getTitle();

	public void setTitle(String title);

	public int getDisplayColumnCount();

	public void setDisplayColumnCount(int displayColumnCount);

	public int getVisibleLevel();

	public void setVisibleLevel(int visibleLevel);

	public boolean isEditable();

	public void setEditable(boolean editable);

	//
	public String getPkStyle();
	
	public void setPkStyle(String style);
	
	public boolean isPkSuffix();
	
	public void setPkSuffix(boolean value);
	
	public String getDisplayStyle();
	
	public void setDisplayStyle(String displayStyle);
	
	public String getDisplayCellWidth();
	
	public void setDisplayCellWidth(String width);
	
	public String getCssClassSuffix();
	
	public void setCssClassSuffix(String suffix);
	
	public boolean isEnablePreview();
	
	public void setEnablePreview(boolean enable);
	
	public boolean isEnableExportPdf();
	
	public void setEnableExportPdf(boolean enable);
	
	public boolean isEnableExportXls();
	
	public void setEnableExportXls(boolean enable);
	
	public boolean isEnableCustomizeColumns();
	
	public void setEnableCustomizeColumns(boolean enable);
	// 属性
	public void setProperties(Set<PT> properties);

	public Set<PT> getProperties();
}
